angular.module('employee', ['employee.controllers'])
.config(function($stateProvider) {
  $stateProvider

    //员工管理
    .state('app.employees', {
      url: 'employees',
      views: {
        'menuContent': {
          templateUrl: 'templates/employee/list.html',
          controller: 'EmployeesCtrl'
        }
      }
    })
      //员工详情
      .state('app.employee', {
        url: 'employee-:_id',
        views: {
          'menuContent': {
            templateUrl: 'templates/employee/detail.html',
            controller: 'EmployeeCtrl'
          }
        }
      })
      //添加员工
      .state('app.employee-add', {
        url: 'add-employee?dept_id',
        views: {
          'menuContent': {
            templateUrl: 'templates/employee/add.html',
            controller: 'EmployeeAddCtrl'
          }
        }
      });
 
});
